package com.iris.live.services.data.models;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by xiO on 2016/11/17.
 */
@Entity
@Table(name = "businessticketsrely", schema = "live", catalog = "")
public class BusinessticketsrelyModel {
    private Integer btRelyId;
    private String btRelyProductId;
    private String btStatus;
    private String ticketsNumber;
    private String vrTicketsNo;
    private Timestamp updateDt;
    private Integer btTrueIds;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "btRely_id")
    public Integer getBtRelyId() {
        return btRelyId;
    }

    public void setBtRelyId(Integer btRelyId) {
        this.btRelyId = btRelyId;
    }

    @Basic
    @Column(name = "BtRely_productId")
    public String getBtRelyProductId() {
        return btRelyProductId;
    }

    public void setBtRelyProductId(String btRelyProductId) {
        this.btRelyProductId = btRelyProductId;
    }

    @Basic
    @Column(name = "bt_status")
    public String getBtStatus() {
        return btStatus;
    }

    public void setBtStatus(String btStatus) {
        this.btStatus = btStatus;
    }

    @Basic
    @Column(name = "Tickets_number")
    public String getTicketsNumber() {
        return ticketsNumber;
    }

    public void setTicketsNumber(String ticketsNumber) {
        this.ticketsNumber = ticketsNumber;
    }

    @Basic
    @Column(name = "VrTickets_no")
    public String getVrTicketsNo() {
        return vrTicketsNo;
    }

    public void setVrTicketsNo(String vrTicketsNo) {
        this.vrTicketsNo = vrTicketsNo;
    }

    @Basic
    @Column(name = "Update_dt")
    public Timestamp getUpdateDt() {
        return updateDt;
    }

    public void setUpdateDt(Timestamp updateDt) {
        this.updateDt = updateDt;
    }

    @Basic
    @Column(name = "bt_trueIds")
    public Integer getBtTrueIds() {
        return btTrueIds;
    }

    public void setBtTrueIds(Integer btTrueIds) {
        this.btTrueIds = btTrueIds;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        BusinessticketsrelyModel that = (BusinessticketsrelyModel) o;

        if (btRelyId != null ? !btRelyId.equals(that.btRelyId) : that.btRelyId != null) return false;
        if (btRelyProductId != null ? !btRelyProductId.equals(that.btRelyProductId) : that.btRelyProductId != null)
            return false;
        if (btStatus != null ? !btStatus.equals(that.btStatus) : that.btStatus != null) return false;
        if (ticketsNumber != null ? !ticketsNumber.equals(that.ticketsNumber) : that.ticketsNumber != null)
            return false;
        if (vrTicketsNo != null ? !vrTicketsNo.equals(that.vrTicketsNo) : that.vrTicketsNo != null) return false;
        if (updateDt != null ? !updateDt.equals(that.updateDt) : that.updateDt != null) return false;
        if (btTrueIds != null ? !btTrueIds.equals(that.btTrueIds) : that.btTrueIds != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = btRelyId != null ? btRelyId.hashCode() : 0;
        result = 31 * result + (btRelyProductId != null ? btRelyProductId.hashCode() : 0);
        result = 31 * result + (btStatus != null ? btStatus.hashCode() : 0);
        result = 31 * result + (ticketsNumber != null ? ticketsNumber.hashCode() : 0);
        result = 31 * result + (vrTicketsNo != null ? vrTicketsNo.hashCode() : 0);
        result = 31 * result + (updateDt != null ? updateDt.hashCode() : 0);
        result = 31 * result + (btTrueIds != null ? btTrueIds.hashCode() : 0);
        return result;
    }
}
